package middleware

import (
	"fmt"

	"github.com/gin-gonic/gin"
)

func MiddleWare1(c *gin.Context) {
	fmt.Println("中间件1")
	c.Set("middleware1", "中间件一设置的值")
	c.Next() // 调用后续的处理函数
	fmt.Println("next之后的内容")
}
